
module.exports = app => {

    return class AuthorizationController extends app.Controller {

        /**
         * 获取token
         * @returns {Promise<void>}
         */
        async authorization() {
            let data = await this.ctx.service.authorization.authorization();
            this.success(data);
        }

    };
};
